class PC {
    private CPU cpu;
    private HardDisk HD;

    public void setCPU(CPU cpu) {
        this.cpu = cpu;
    }

    public void setHardDisk(HardDisk hardDisk) {
        this.HD = hardDisk;
    }

    public void show() {
        System.out.println("CPU speed：" + cpu.getSpeed());
        System.out.println("HardDisk amount：" + HD.getAmount());
    }
}
